home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
snip9707.zip
/
SSTRCPY.C
< prev
next >
Wrap
C/C++ Source or Header
|
1997-07-05
|
490b
|
29 lines
/* +++Date last modified: 05-Jul-1997 */
/*
** strcpy() and strcat() work-alikes which allow overlapping buffers.
*/
#include <string.h>
#include "snip_str.h"
#if defined(__cplusplus) && __cplusplus
extern "C" {
#endif
char *sstrcpy(char *to, char *from)
{
memmove(to, from, 1+strlen(from));
return to;
}
char *sstrcat(char *to, char *from)
{
sstrcpy(to + strlen(to), from);
return to;
}
#if defined(__cplusplus) && __cplusplus
}
#endif